FROM java:8

RUN rm -f /etc/localtime \
&& ln -sv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone

ADD target/*.jar app.jar

EXPOSE 11111

ENTRYPOINT ["java", "-jar", "/app.jar"]